home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Ahoy 1986 May
/
Ahoy_Magazine_86-05_1986_Double_L.d64
/
menu c-64
(
.txt
)
< prev
next >
Wrap
Commodore BASIC
|
2022-10-26
|
2KB
|
52 lines
10 poke53280,6:poke53281,6:dimtb$(150):print"[147]"chr$(14):di=8:c=1
20 open8,di,8,": directory ":open15,di,15:input#15,en$,ed$,et$,es$
30 input#8,dn$:ifen$<>"00"thenclose8:close15:goto310
40 input#8,tb$(c):ifst=66then70
50 ifasc(left$(tb$(c),1))=10thentb$(c)=right$(tb$(c),len(tb$(c))-1):goto50
60 c=c+1:goto40
70 close8:close15:m=c-1:tb$(c)="":l1$="":forc=1to40:l1$=l1$+" ":next
80 l1$=l1$+"[146]":a=1
90 poke53281,1:print"[147]";:forc=1to4:printl1$;:next:forc=1to2:print""l1$;
95 next:print"";
100 printspc(7)"[196]irectory [193]ssistance v64"spc(11)" ";
105 print" "spc(12)" (c) [201]on [201]nt'l [201]nc. "spc(59)""dn$spc(8)l1$;
120 forc=atoa+14:print""right$(" "+str$(c),5)"[146] "tb$(c)spc(29-len(tb$(c)));
130 print" ";:next:printl1$;
135 fora=1to2:print""l1$;:next:printleft$(l1$,40)"[145]"
140 printspc(9)"[145][145][198]1 = continue listing"spc(19)"[198]3 = create directory";
150 printspc(19)"[198]5 = exit program":poke2023,160:poke56295,6:poke198,0:b$=""
160 geta$:ifa$=""then160
170 ifasc(a$)=13then260
180 ifa$="[133]"then240:rem" f1 ******
190 [139]a$[178]"dim"[167]300:[143]" f3 ******
200 ifa$="[135]"thenpoke53280,3:print"[147]run":end:rem" f5 ******
210 [139][198](a$)[178]20[167]b$[178]"":[153]" wait":b$[178]"":[137]160
220 [139]a$[179]"0"[176]a$[177]"9"[176][195](b$)[178]3[167]160
230 b$[178]b$[170]a$:[153]""b$:[137]160
240 [139]c[177]m[167]a[178]1:[137]90
250 a[178]c:[137]90
260 [139][197](b$)[177]m[167][153]"???":[129]c[178]1[164]1500:[130]:a$[178][199](20):[137]210
270 [151]53281,6:[151]53280,14:[153]"waitloadload"[199](34)tb$([197](b$))[199](34)",8,1"
280 [143] printright$(str$(di),len(str$(di))-1)
290 [153]"":[151]198,4:[151]631,13:[151]632,82:[151]633,213:[151]634,13:[128]
300 [153]"wait"
310 [159]8,di,0,"$0":[129]c[178]1[164]8:[161]#8,a$:[130]:c[178]1:dn$[178]"":[129]c[178]1[164]16
320 [161]#8,a$:dn$[178]dn$[170]a$:[130]:[161]#8,a$:[161]#8,a$:dn$[178]dn$[170]" ":[161]#8,a$
330 dn$[178]dn$[170]a$:[161]#8,a$:dn$[178]dn$[170]a$:[161]#8,a$:[161]#8,a$:dn$[178]dn$[170]" "[170]a$
340 [161]#8,a$:dn$[178]dn$[170]a$:[161]#8,a$:c[178]1
350 [129]a[178]1[164]4:[161]#8,a$:[130]:pn$[178]"":ty$[178]""
360 [161]#8,a$:[139]st[179][177]0[167]450
370 [139]a$[178]""[167]450
380 [139][198](a$)[179][177]34[167]360
390 [161]#8,a$:[139][198](a$)[179][177]34[167]pn$[178]pn$[170]a$:[137]390
400 [161]#8,a$:[139][198](a$)[178]32[167]400
410 ty$[178]ty$[170]a$:[161]#8,a$:[139]a$[179][177]""[167]410
420 [139][200](ty$,3)[179][177]"prg"[167]350
430 [139][200](pn$,1)[178]" "[167]350
440 tb$(c)[178]pn$:c[178]c[170]1:[139]st[178]0[167]350
450 [160]8:[159]15,di,15,"s: directory ":[160]15
460 z$[178]"(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)(NULL)":[159]8,di,8,": directory ,s,w":[152]8,dn$
470 [129]a[178]1[164]c[171]1:c$[178]z$:[129]b[178]1[164]c[171]1:[139]c$[179]tb$(b)[167]490
480 c$[178]tb$(b):d[178]b
490 [130]:[152]8,c$:tb$(d)[178]z$:[130]:[160]8:[156]:[137]10